//
//  HNMainUserListGuiJuCellTableViewCell.m
//  XDEducation
//
//  Created by 星道 on 17/5/26.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HNMainUserListGuiJuCellTableViewCell.h"

@implementation HNMainUserListGuiJuCellTableViewCell
{
    IBOutlet UILabel *_Title;
    IBOutlet NSLayoutConstraint *_ButtonWidth;
    HNMainuUserListGuiJuModel *_GuiJuModel;
}


- (void)SetGuiJuModel:(HNMainuUserListGuiJuModel *)GuiJuModel PersonModel:(HNMainuUserListPersonModel *)PersonModel
{
    _GuiJuModel = GuiJuModel;
    _Title.text = GuiJuModel.content;
    if ([[PersonModel.uid stringValue] isEqualToString:[AccountTool shareAccountTool].currentAccount.uid])
    {
        if ([GuiJuModel.type isEqualToNumber:@1])
        {
            _ButtonWidth.constant = 0;
        }
        else
        {
            _ButtonWidth.constant = 46;
        }
        
    }
    else
    {
        _ButtonWidth.constant = 0;
    }
}

- (IBAction)ClickUpdate:(UIButton *)sender
{
    if (self.ClickUpdate)
    {
        self.ClickUpdate (_GuiJuModel);
    }
}

@end
